﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FixedAssets.Module.BasicInformation
{
	public partial class FA_MasterDataCard : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
           //this.C1Menu1.ItemClick+=new C1.Web.Wijmo.Controls.C1Menu.C1MenuEventHandler(C1Menu1_ItemClick);
            if (!IsPostBack)
            {
                this.show_list_div.Visible = true;
                this.show_view_div.Visible = false;
                this.create_div.Visible = false;
                this.edit_div.Visible = false;
            }


		}

        protected void C1Menu1_ItemClick(object sender, C1.Web.Wijmo.Controls.C1Menu.C1MenuEventArgs e)
        {
            switch (e.Item.Value)
            {
                case "Showlist":
                    {
                        this.show_list_div.Visible = true;
                        this.show_view_div.Visible = false;
                        this.create_div.Visible = false;
                        this.edit_div.Visible = false;
                    }
                    break;
                case "ShowView":
                    {
                        this.show_list_div.Visible = false;
                        this.show_view_div.Visible = true;
                        this.create_div.Visible = false;
                        this.edit_div.Visible = false;
                    }
                    break;
                case "Create":
                    {
                        this.show_list_div.Visible = false;
                        this.show_view_div.Visible = false;
                        this.create_div.Visible = true;
                        this.edit_div.Visible = false;
                    }
                    break;
                case "Edit":
                    {
                        this.show_list_div.Visible = false;
                        this.show_view_div.Visible = false;
                        this.create_div.Visible = false;
                        this.edit_div.Visible = true;
                    }
                    break;
                case "Delete":
                    {
                       
                    }
                    break;

            }
        }
	}
}